Add support for dynamic Dashboards URL via cluster settings - #6275
Conversation
Signed-off-by: Praveen Raj V <praveenvenkat06@gmail.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit afbf218.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit 33b24e7)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 33b24e7 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit afbf218
Suggestions up to commit 008a6b7
Suggestions up to commit 410b3dd
Suggestions up to commit fa756db
Suggestions up to commit f19e2d8
|
Signed-off-by: Praveen Raj V <praveenvenkat06@gmail.com>
|
Persistent review updated to latest commit fa756db |
Signed-off-by: Praveen Raj V <praveenvenkat06@gmail.com>
|
Persistent review updated to latest commit 410b3dd |
…ster-setting-support-for-dashboards_url
|
Persistent review updated to latest commit 008a6b7 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6275 +/- ##
==========================================
- Coverage 75.02% 75.01% -0.01%
==========================================
Files 451 452 +1
Lines 29248 29285 +37
Branches 4407 4411 +4
==========================================
+ Hits 21942 21968 +26
- Misses 5267 5279 +12
+ Partials 2039 2038 -1
🚀 New features to boost your workflow:
|
Signed-off-by: Praveen Raj V <praveenvenkat06@gmail.com>
|
Persistent review updated to latest commit afbf218 |
|
Persistent review updated to latest commit 33b24e7 |
Description
Enhancement — Introduces a new dynamic cluster setting
plugins.security.dashboards.dashboards_urlthat allows operators to update the OpenSearch Dashboards URL used in the SAML authentication flow at runtime, without modifying the security index or reloading configuration.Old behavior: The Dashboards URL (
kibana_url) was read once from the SAML authenticator's security-index configuration and required a config reload to change.New behavior: The URL is resolved dynamically at every call site using the following precedence:
plugins.security.dashboards.dashboards_url) — if set and non-emptykibana_urlin the security configurationThe SAML settings cache (
Saml2SettingsProvider) is automatically invalidated when the setting value changes, so updates take effect immediately with no restart required.Issues Resolved
[6015]
Testing
Manual testing is done and dynamic Dashboards URL changes are reflected at runtime. Unit tests have been added for the implementation.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.